<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<title>voicecloud</title>
<link href="css/layout.css" rel="stylesheet" type="text/css" />
<link href="css/nav.css" rel="stylesheet" type="text/css" />
<link href="css/nav_left.css" rel="stylesheet" type="text/css" />
<link href="css/block.css" rel="stylesheet" type="text/css" />
<link href="css/button.css" rel="stylesheet" type="text/css" />
 
<link href="uploadify/uploadify.css" type="text/css" rel="Stylesheet" rev="Stylesheet" />
<script type="text/javascript" language="javascript" src="uploadify/jquery-1.4.2.min.js"></script>
<script type="text/javascript" language="javascript" src="uploadify/swfobject.js"></script>
<script type="text/javascript" language="javascript" src="uploadify/jquery.uploadify.v2.1.4.min.js"></script>
<script type="text/javascript" language="javascript">

        $(document).ready(function () {

            $('#file_upload').uploadify({
                'uploader': '/uploadify/uploadify.swf',
                'script': '/uploadify/uploadify.php',
                'cancelImg': '/uploadify/cancel.png',
				'fileDesc':'please select .wav files',
				'fileExt':'*.wav',
                'auto':true,
                'multi':true,				
				'onError': function(event,queueId,fileObj,errorObj)
				{
					alert("error type:"+errorObj.type+"\n"+"error info:"+errorObj.info+"\n");
				},
				'onAllComplete': function(event,data)
				{
					alert("File nums:"+data.filesUploaded+"\n"+"Error nums:"+data.errors+"\n");
					location.href = "show.php";

				}

            });

        });

    </script>
<style type="text/css">
<!--
@import url("css/layout.css");
-->
</style>
<link href="css/layout.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
	<div id="nav">
		<ul>
		<li><a href="index.html">Home Page</a></li> 
		<li class="vline"></li>
		<li><a href="client.html">Join The Cloud</a></li>
		<li class="vline"></li>
		<li><a href="server.html">Server Control</a></li>
		<li class="vline"></li>
		</ul>
	</div>
</div>
<div id="wrap">
	<div id="sider_left">
	</div>
  <div id="main">
		<p> You can now upload the WAV files by clicking the button below:</p>
		<input type="file" name="file_upload" id="file_upload" />
		<p> If you just want to view the database,you can click the button below:</p>
	    <a  href="show.php" class="btn blue">VIEW THE DATABASE      </a>
  </div>
</div>
</body>
</html>
